package org.zcl.sqlSession;

import org.zcl.pojo.Configuration;

/**
 * .
 *
 * @Author Chenglin Zhu
 * @Date 2022/3/12 18:31
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
